<!-- toaster directive -->
<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
<!-- / toaster directive -->

<!-- 导航条 -->
<div class="bg-white bread-crumb">
    <ul class="breadcrumb b-a m-b-n-xs lter b-b wrapper-md">
        <li><a ui-sref="main.tpl.homePage"><i class="fa fa-home"></i> 首页</a></li>
        <li class="active" ng-bind="title"></li>
    </ul>
</div>

<!-- 加载提醒 -->
<div ng-show="loading" class="text-center m-t-md text-lg"><i class="fa fa-spin fa-spinner"></i> 数据加载中...</div>

<!-- 内容区域 -->
<div ng-hide="loading" class="wrapper-md content">
    <!-- 数据显示 -->
    <div class="wrapper-data">
        <div class="panel panel-default">

            <div class="panel-body">
                <!--<div class="w-lg">-->
                <form ng-submit="searchRe()" class="form-horizontal">
                    <div class="form-group">
                        <div class="col-sm-2">
                            <input type="text" class="form-control" ng-model="searchParams.planName"
                                   placeholder="计划名称">
                        </div>
                        <div class="col-md-1">
                            <label class="col-sm-1 control-label"><button class="ifc-btn btn-primary"  ng-click="searchRe()">查 询</button></label>
                        </div>
                    </div>

                </form>
                <!--</div>-->
            </div>


            <!-- 数据表格 -->
            <div class="table-responsive">
                <table class="table table-striped b-t b-light text-center">
                    <thead>
                    <tr>
                        <th>编号</th>
                        <th>计划名称</th>
                        <th>广告ID</th>
                        <th>曝光量</th>
                        <th>点击量(次)</th>
                        <th>点击率</th>
                        <th>花费</th>
                        <th>点击价</th>
                        <th>统计开始时间</th>
                        <th>统计结束时间</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat="item in pageInfo.records">
                        <td class="v-middle">{{$index+1}}</td>
                        <td class="v-middle">{{item.plan_name}}</td>
                        <td class="v-middle">{{item.adId}}</td>
                        <td class="v-middle">{{item.exposureNum}}</td>
                        <td class="v-middle">{{item.clickNum}}</td>
                        <td class="v-middle">{{item.clickRate}}</td>
                        <td class="v-middle">{{item.sumCost}}</td>
                        <td class="v-middle">{{item.clickPrice}}</td>
                        <td class="v-middle">{{ item.startTime | date : 'yyyy-MM-dd HH:mm:ss'}}</td>
                        <td class="v-middle">{{ item.endTime | date : 'yyyy-MM-dd HH:mm:ss'}}</td>
                    </tr>
                    </tbody>
                </table>
            </div><!-- /.table-responsive -->

            <!-- 底部分页 -->
            <span data-ng-include=" 'src/tpl/pageInfo.html' "></span>
        </div><!-- /.panel -->
    </div><!-- /.wrapper-data -->

</div><!-- /.wrapper-md -->